import Vue from 'vue'
import VueRouter from 'vue-router'
Vue.use(VueRouter);
// 访问链接
// http://localhost:8080/paidService/index.html#/Caopan?token=CN,4G3Btpq5vZcSV4X,tA,Oxiq,KPlhBModiuHgga4g8jD6GxizfWHC5lk32VEHCYcZr6IjvNExBkhopDhFSWx0sZsRK3xp,7O.z.vBD5BktwRMDAuUjWk9dgIyR.5gQUodnKcBjJz7bD.cKUqyJ3Ea4EO,kpmQQtyCxutjc3w8DD4YvUbDs0uAURgQz6rAZzqLgdIOjzPs_&version=11&productId=66&userId=30201

const routes = [
    {
        path: '/caoPan',
        name: 'caoPan',
        component: ()=> import("../views/CaoPan/App.vue"),
        meta: {
            title: '操盘攻略'
        }
    },
    {
        path: '/fengkouOff',
        name: 'fengkouOff',
        component: ()=> import("../views/Fengkou/App2.7.0.vue"),
        meta: {
            title: '今日风口'
        }
    }, 
    {
        path: '/DiaoYan',
        name: 'DiaoYan',
        component: ()=> import("../views/DiaoYan/App.vue"),
        meta: {
            title: '机构调研'//暂时废弃
        }
    }, 
    {
        path: '/QianFu',
        name: 'QianFu',
        component: ()=> import("../views/QianFu/App.vue"),
        meta: {
            title: '机会潜伏'
        }
    }, 
    {
        path: '/ReDian',
        name: 'ReDian',
        component: ()=> import("../views/ReDian/App.vue"),
        meta: {
            title: '热点透析'//暂时废弃
        }
    }, 
    {
        path: '/YanXuan',
        name: 'YanXuan',
        component: ()=> import("../views/YanXuan/App.vue"),
        meta: {
            title: '驭龙研选'//暂时废弃
        }
    }, 
];
const router = new VueRouter({
    linkActiveClass: 'active',
    base: process.env.BASE_URL,
    routes
});
//路由后置钩子
router.afterEach((to, from) => {

    //设置头部标题
    if (to.meta.title) document.title = to.meta.title;
});

export default router




